package com.example.hr.text_android.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.hr.text_android.R;
import com.example.hr.text_android.entity.Status;

import java.util.List;

/**
 * Created by hr on 2017/7/28.
 */
public class AdapterOne extends BaseQuickAdapter<Status, MyHolder> {
    public AdapterOne(List<Status> data) {
        super(R.layout.layout_recycle, data);
    }

    @Override
    protected void convert(MyHolder helper, Status item) {
        helper.setText(R.id.tv_nickname, item.getUserName());
        helper.nameTv.setText(item.getText());
    }

//    @Override
//    protected void convert(CircleViewHolder helper, Status item) {
//        helper.setText(R.id.tv_nickname, item.getUserName());
//        helper.nameTv.setText(item.getText());
//    }

//    @Override
//    protected void convert(BaseViewHolder helper, Status item) {
//        helper.setText(R.id.tv_nickname,item.getUserName());
//        helper.setText(R.id.tv_zhengwen,item.getText());
//    }
}
